package com.sylvek.sentinel;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.View;

/**
 * @author sylvek
 * 
 */
public class WelcomeActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.welcome);
    }

    public void settings(final View view)
    {
        startActivityForResult(new Intent(this, SettingsActivity.class), 0);
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data)
    {
        PreferenceManager.getDefaultSharedPreferences(this).edit().putBoolean(SentinelActivity.INITIALIZED, true).commit();
        finish();
    }
}
